﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PhieuChiList.aspx.cs" Inherits="WebApplication.Admin.PhieuChiList" MasterPageFile="~/Admin/Web.Master" %>
<asp:Content ContentPlaceHolderID="Header" runat="server" >
</asp:Content>
<asp:Content ContentPlaceHolderID="maint" runat="server">
    <div style="float:right">
<asp:LinkButton runat="server" ID="lbtnthemmoi" CssClass="btn btn-info" onclick="lbtnthemmoi_Click" 
              >Thêm mới</asp:LinkButton>
</div><br />
<div style="margin-top:25px">
<asp:GridView ID="Grphieuchi" runat="server" 
        CssClass="table table-striped table-bordered table-hover" 
        AutoGenerateColumns="False" onrowcommand="Grphieuchi_RowCommand" 
        onrowdatabound="Grphieuchi_RowDataBound" AllowPaging="True" OnSelectedIndexChanging="Grphieuchi_SelectedIndexChanging">
    <Columns>
    <asp:TemplateField HeaderText="STT">
     <ItemTemplate>
     <%# Container.DataItemIndex+1 %>
     </ItemTemplate>
        </asp:TemplateField>
        <asp:BoundField DataField="MaPC" HeaderText="Mã phiếu chi" />
        <asp:TemplateField HeaderText="Nhân viên">
         <ItemTemplate>
          <asp:Label runat="server" ID="lbnhanvien"></asp:Label>
         </ItemTemplate>
        </asp:TemplateField>
        <asp:BoundField HeaderText="Mã hóa đơn nhập" DataField="MAHDN" />
        <asp:BoundField DataField="NgayChi" HeaderText="Ngày chi" />
        <asp:BoundField DataField="SoTienDaTra_PC" HeaderText="Số tiền chi" />
        <asp:BoundField HeaderText="Nội dung chi" DataField="NoiDungChi" />
        <asp:TemplateField HeaderText="Chức năng">
        <ItemTemplate>
          <asp:LinkButton runat="server" ID="lbtnsua" CommandName="lbtnsua" CommandArgument='<%#Bind("MaPC") %>' ><i class="icon-pencil bigger-130"></i></asp:LinkButton>
          <asp:LinkButton runat="server" ID="lbtnxoa" CommandName="lbtnxoa" CommandArgument='<%#Bind("MaPC") %>' OnClientClick="<script>confirm('Ban co muon xoa ko')</script>"><i class="icon-trash bigger-130 red"></i></asp:LinkButton>
        </ItemTemplate>
        </asp:TemplateField>
    </Columns>
</asp:GridView>
</div>
</asp:Content>

